﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="Admin_Pages_Core_upload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Upload Image Zone</title>
    <link rel="stylesheet" type="text/css" href="~/Admin/Script/upload/fileuploader.css" />

    <script src="../../Script/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Script/upload/fileuploader.js" type="text/javascript"></script>
    <script src="../../Pages/Core/Js/Admin.Core.js" type="text/javascript"></script>
    <script type="text/javascript">
        function GetLink() {
            var link1 = $("#upload1").attr("filename");
            link1 = "../../Admin/Upload/Image/News/" + link1;
            $("input[id$='photos1']").val(link1);
        }
        $(function () {
            Admin.Core.Uploader('upload1');
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <label>
            Image 1 :
        </label>
        <div id="upload1"></div>
        <input type="text" id="photos1" runat="server" />
        <asp:Button ID="btnUpload" runat="server" Text="GetLink" OnClientClick="GetLink();" />
    </div>
    </form>
</body>
</html>
